import { Schema } from "@/api/interface/iot";
import http from "@/api";
export const getSchema = (params?: any) => {
	return http.get<Schema.ResSchemaInfo>(`/schema/get`, params, {
		headers: { noLoading: true }
	});
};
// 配置schema整体替换
export const replaceSchema = (params?: any) => {
	return http.post(`/schema/save`, params);
};
// 配置schema层级合并更新
export const modifySchema = (params?: any) => {
	return http.post(`/schema/merge`, params);
};
